#ifndef _NETLIB_H_INCLUDED_
#define _NETLIB_H_INCLUDED_

#include "defines.h"

void print_IP(uint8 *buf);
void print_MAC(uint8 *buf);

uint16 ip_checksum(uint8 *data, uint16 size);
int parse_IP(uint8 *buf, const char *str);
int is_loopback_address(const uint8 IP[]);

#endif
